package cn.ecasoft.pojo.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: LiangChun
 * @Description: 采集器交互dto
 * @DateTime: 2023/2/23
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class CollectorDto implements Serializable {

    /*
    传输类型
     */
    @NotNull(message = "传输类型")
    @JSONField(name = "M_Type")
    private String M_Type;

    /*
    编码
     */
    @JSONField(name = "M_Code")
    private String M_Code;

    /*
    上传时间
     */
    @JSONField(name="M_Up_Time")
    private Date M_Up_Time;

    /*
    数值
     */
    @JSONField(name="M_Value")
    private String M_Value;



}